# coding = utf-8

from django.urls import path
from rest_framework.routers import DefaultRouter

from .views import CapitalAccountViewSet, CapitalAccountListAPIView, FundBillViewSet, RepaymentBillViewSet, \
    JournalViewSet, PrepaymentViewSet, PrepaymentListAPIView

router = DefaultRouter()
# 后台
router.register(r'account', CapitalAccountViewSet, basename="api-account")
router.register(r'fund', FundBillViewSet, basename="api-fund-bill")
router.register(r'repayment', RepaymentBillViewSet, basename="api-fund-repayment-bill")
router.register(r'journal', JournalViewSet, basename="api-Journal")
router.register(r'prepayment', PrepaymentViewSet, basename="api-prepayment")

urlpatterns = [
    path('account_list/', CapitalAccountListAPIView.as_view(), name="api-account-list"),
    path('prepayment_list/', PrepaymentListAPIView.as_view(), name="api-prepayment-list"),
]
urlpatterns += router.urls
